package org.aileen.springbook.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
public enum ResultCodeEnum {
    //成功 200
    //未登录 -1
    //后端发生异常 (可细分,此处就不这么干了)  -2
    SUCCESS(200, "操作成功"),
    NOLOGIN(-1, "用户未登录"),
    FAIL(-2, "其他错误");

    @Getter
    private  int code;
    @Getter
    private String name;
}
